home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / var / arpwatch / massagevendor-old < prev    next >
Text File  |  2006-06-30  |  595b  |  20 lines

  1. #!/bin/sh
  2. # @(#) $Id: massagevendor-old,v 1.4 2000/09/17 21:00:46 leres Exp $ (LBL)
  3. #
  4. # Massage
  5. #
  6. #    ftp://ftp.cavebear.com/pub/Ethernet.txt
  7. #    http://www.cavebear.com/CaveBear/Ethernet/vendor.html
  8. #
  9. # into ethercodes.dat format
  10. #
  11. sed -n \
  12.     -e '/^[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][     ]/!d' \
  13.     -e 's/[     ][     ]*$//' \
  14.     -e p $* | \
  15.     awk -f euppertolower.awk | \
  16.     sed -n \
  17.     -e 's/^\([0-9A-Za-z][0-9A-Za-z]\)\([0-9A-Za-z][0-9A-Za-z]\)\([0-9A-Za-z][0-9A-Za-z]\)[     ]\(.*\)$/\1:\2:\3    \4/' \
  18.     -e 's/^0//' -e 's/:0\([0-9A-Za-z]\)/:\1/g' -e p | \
  19.     sort
  20.